package com.zengqingfa.springbootjspdemo.jsp;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;

/**
 * @author zengqingfa
 * @date 2019/11/19 11:24
 * @description
 * @email zengqingfa_java@163.com
 */

@Controller
@RequestMapping("/jsp")
public class JspController {

    @RequestMapping("/hello")
    public String hello(Model model){
        model.addAttribute("msg2","hello,springboot-jsp");
        return "index2";
    }

}
